package model;

public class Contact implements Cloneable{
	
	
    private String  firstName; 
    private String  lastName;
    private String	homeAddress;
    private String	companyAddress;
    private String	personalPhone; //(mobile, home)
    private String	professionalPhone; //(mobile, office)
    private String	homePage;
    private String	email; //(professional, personal)
    private String	photo;
    private String	other1; //(e.g. jabber, ICQ, etc.)
    private String	other2; //fields you feel like.
    private String	groupe; //fields you feel like. 
    
	public Contact() {
		
		
		this.firstName ="" ;
		this.lastName ="";
		this.homeAddress = "";
		this.companyAddress ="";
		this.personalPhone ="" ;
		this.professionalPhone = "";
		this.homePage ="" ;
		this.email ="";
		this.photo ="";
		this.other1 = "";
		this.other2 ="";
		this.groupe ="";
		
		
	}
    


	public Contact(String firstName, String tlastName, String homeAddress,
			String companyAddress, String personalPhone,
			String professionalPhone, String homePage, String email, String other1, String other2,String groupe) {
		super();
		this.firstName = firstName+" ";
		this.lastName = tlastName+" ";
		this.homeAddress = homeAddress+" ";
		this.companyAddress = companyAddress+" ";
		this.personalPhone = personalPhone+" ";
		this.professionalPhone = professionalPhone+" ";
		this.homePage = homePage+" ";
		this.email = email+" ";
		this.photo ="C:/Users/Pierre/workspace/MyAddressBook/inconnu.jpg ";
		this.other1 = other1+" ";
		this.other2 = other2+" ";
		this.groupe = groupe+" ";
		
	}
	
	 public String toString() {
			return "Contact [firstName=" + firstName + ", lastName=" + lastName
					+ ", homeAddress=" + homeAddress + ", companyAddress="
					+ companyAddress + ", personalPhone=" + personalPhone
					+ ", professionalPhone=" + professionalPhone + ", homePage="
					+ homePage + ", email=" + email + ", photo=" + photo
					+ ", other1=" + other1 + ", other2=" + other2 + "]";
		}
	

	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getTlastName() {
		return lastName;
	}
	public void setTlastName(String tlastName) {
		this.lastName = tlastName;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getCompanyAddress() {
		return companyAddress;
	}
	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}
	public String getPersonalPhone() {
		return personalPhone;
	}
	public void setPersonalPhone(String personalPhone) {
		this.personalPhone = personalPhone;
	}
	public String getProfessionalPhone() {
		return professionalPhone;
	}
	public void setProfessionalPhone(String professionalPhone) {
		this.professionalPhone = professionalPhone;
	}
	public String getHomePage() {
		return homePage;
	}
	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public String getOther1() {
		return other1;
	}
	public void setOther1(String other1) {
		this.other1 = other1;
	}
	public String getOther2() {
		return other2;
	}
	public void setOther2(String other2) {
		this.other2 = other2;
	}
	
		
    public String getGroupe() {
		return groupe;
	}

	public void setGroupe(String groupe) {
		this.groupe = groupe;
	}



	@Override
    public Contact clone() throws CloneNotSupportedException {   
	return (Contact)super.clone();
    }  



}
